package com.wyj.service;

import com.wyj.common.ApplicationContestProvider;
import com.wyj.entity.ActivityConfig;
import com.wyj.enums.ActivityType;

public abstract class AbstractActivityService {

    public ActivityConfig getActConfig(ActivityType activityType) {
        ActivityConfigService activityConfigService = ApplicationContestProvider.getBean(ActivityConfigService.class);
        return activityConfigService.findByActivityType(activityType.getName());
    }

}
